package com.huqing.icu.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.huqing.icu.enums.UserActionBusSceneEnum;
import com.huqing.icu.enums.UserActionSourceTypeEnum;
import com.huqing.icu.enums.UserActionTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.sql.Timestamp;

/**
 * 用户房子行为实体类
 *
 * @author huqing
 * @date 2024-09-19 22:38
 */
@TableName(value = "house_user_action_record")
@Data
public class HouseUserActionRecord {


    @Schema(name = "id", description = "主键id")
    @TableId("id")
    private Long id;

    @Schema(name = "userId", description = "用户ID")
    private Long userId;

    @Schema(name = "houseId", description = "房源ID")
    private Long houseId;

    @Schema(name = "houseTitle", description = "房源标题")
    private String houseTitle;

    /**
     * @see UserActionTypeEnum
     */
    @Schema(name = "actionType", description = "行为类型  1-点赞(喜欢) 2-收藏")
    private Integer actionType;

    /**
     * 是否删除 0-否 1-是
     */
    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Timestamp createTime;

    /**
     * 创建时间
     */
    @TableField("modify_time")
    private Timestamp modifyTime;
}
